package tmproject.hlhj.fhp.upbrintryproject

import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        supportActionBar?.hide()
        btNews.setOnClickListener {
            val intent = Intent(this, FgmAty::class.java)
            intent.putExtra("type",1)
            startActivity(intent)
        }
        btLive.setOnClickListener {
            val intent = Intent(this, FgmAty::class.java)
            intent.putExtra("type",2)
            startActivity(intent)
        }
        btSpecial.setOnClickListener {
            val intent = Intent(this, FgmAty::class.java)
            intent.putExtra("type",3)
            startActivity(intent)
        }
        btb.setOnClickListener {
            val intent = Intent(this, FgmAty::class.java)
            intent.putExtra("type",4)
            startActivity(intent)
        }
        btVote.setOnClickListener {
            val intent = Intent(this, FgmAty::class.java)
            intent.putExtra("type",5)
            startActivity(intent)
        }
        btKK.setOnClickListener {
            val intent = Intent(this, FgmAty::class.java)
            intent.putExtra("type",6)
            startActivity(intent)
        }


    }
}
